#include "case02.h"

uint32_t important_value = 10;

static void overflow_test(void)
{
    char small_buffer[8];

    const char *long_data = "This is a very long string that will overflow the buffer!";
    strcpy(small_buffer, long_data); 
}

void case_02(void)
{
    uint16_t pin = 0xffff;
    uint8_t bit = 0;
    while (1)
    {
        pin = (uint16_t)(1 << (bit++));
        if(bit > 7)
            bit = 0;
        HAL_GPIO_TogglePin(GPIOA, pin);

        overflow_test();
        HAL_Delay(20);
    }
}
